<template>
	<view style="min-height: 100vh;background-color: #FFFFFF;overflow: hidden;">
		<view style="padding: 32rpx 24rpx;">
			<u-parse :html="content"></u-parse>
		</view>
	</view>
</template>

<script>
	import {
		testPolicyAndAgreement
	} from '@/api/user.js'
	export default {
		data() {
			return {
				type: '',
				content: ''
			};
		},
		onLoad(e) {
			console.log(e)
			this.type = e.type
			this.getinfo()

		},
		methods: {
			async getinfo() {
				const {
					data,
					message,
					code
				} = await testPolicyAndAgreement()
				if (this.type == 'user') {
					this.content = data.user_agreement
				} else {
					this.content = data.privacy_policy
				}

			},
		}

	}
</script>

<style lang="scss" scoped>

</style>